<?php

namespace Model;

class CommentArray
{
	private $m_Comment = array();
	public function __construct(){

	}
	public function add(Comment $comment)
	{
		$this->m_Comment[] = $comment;
	}
	public function get() 
	{
		return $this->m_Comment;
	}
} 

class Comment {
	
	private $m_CommentId;// int 
	private $m_PId;//int
	private $m_Name;//string 
	private $m_Comment;//string
	private $m_date;//string

	public function __construct($commentId,$pId ,$name, $comment, $date) {
		
		$this->m_CommentId = $commentId;
		$this->m_PId = $pId;
		$this->m_Name = $name;
		$this->m_Comment = $comment;
		$this->m_date = $date;
	}

	public function getCommentId()
	{
		return $this->m_CommentId;
	}
	public function getPId()
	{
		return $this->m_PId;
	}
	public function getName() 
	{
		return $this->m_Name;
	}
	public function getComment()
	{
		return $this->m_Comment;
	}
	public function getDate()
	{
		return $this->m_date;
	}
}